package com.jsmile.cloud.taskcenter.api.res;

import java.util.Date;

import javax.validation.constraints.NotBlank;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel
public class ResTask {

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    /**
     * desc: 是否有状态 1有 0无
     */
    private Integer status;
    /**
     * desc: 任务状态 1正常 0暂停
     */
    private Integer taskStatus;
    @ApiModelProperty("任务名称")
    @NotBlank(message = "任务名称不能为空")
    private String jobName;
    @ApiModelProperty("任务名称")
    @NotBlank(message = "任务名称不能为空")
    private String jobGroup;
    @ApiModelProperty("cron表达式")
    @NotBlank(message = "cron表达式不能为空")
    private String cron;
    @ApiModelProperty("beanClass")
    @NotBlank(message = "beanClass不能为空")
    private String beanClass;

    @ApiModelProperty("任务类型  1周期任务 2定时任务")
    @NotBlank(message = "任务类型不能为空")
    private String taskType;

    private String remark;
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;
    @ApiModelProperty(value = "0:正常，1:删除")
    private Integer delFlag;
    @ApiModelProperty(value = "创建者")
    private String createBy;
    @ApiModelProperty(value = "修改者")
    private String updateBy;

}
